-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix image loading in normalMap sample #310
Conversation
Test Merge
…aders, texture loading, or maps need work
…nctions, and added additional comments to code
Got rid of any utils outside of the main function that handled loading images. I also put all the images back in the assets folder. For some reason, the .next folder and out folder only build in the assets as part of the website when the images are referenced in main? Not sure why that might be. Regardless, image loading should be fixed after this next commit. |
This should probably be addressed as soon as possible, the current example on the website is nonfunctional. |
src/sample/texturedCube/main.ts
Outdated
@@ -110,6 +110,11 @@ const init: SampleInit = async ({ canvas, pageState }) => { | |||
// Fetch the image and upload it into a GPUTexture. | |||
let cubeTexture: GPUTexture; | |||
{ | |||
const url = new URL( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this changed? revert?
Get the image loading in the normalMap sample to actually work.